package com.sptpc.demo.controller;

import com.sptpc.demo.controller.requests.AddDrinkRequest;
import com.sptpc.demo.controller.requests.AddVetRequest;
import com.sptpc.demo.model.Category;
import com.sptpc.demo.model.Drink;
import com.sptpc.demo.model.Vet;
import com.sptpc.demo.service.IVetService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/vet")
public class VetController {
    @Autowired
    public IVetService vetService;
    @GetMapping("/")
    public List<Vet> getAll(){

        return vetService.getAllVets();
    }


}
